package com.xiami.service.impl;

import com.xiami.mapper.UserMapper;
import com.xiami.pojo.User;
import com.xiami.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/*
创建者:虾米糖
*/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User list(Integer id) {
        userMapper.getUser(id);
        return null;
    }

    @Override
    public void addUser(User user) {
        userMapper.adduser(user);
    }
}
